import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { OperationRecord } from './entities/operation-record.entity';
import { OperationRecordService } from './operation-record.service';
import { OperationRecordController } from './operation-record.controller';
import { JwtModule } from '@nestjs/jwt';
import { jwtConstants, signOptions } from 'src/common/auth/constants';

@Module({
    imports: [
        TypeOrmModule.forFeature([OperationRecord]),
        JwtModule.register({
            secret: jwtConstants.secret,
            signOptions,
        }),
    ],
    controllers: [OperationRecordController],
    providers: [OperationRecordService],
    exports: [OperationRecordService],
})
export class OperationRecordModule { }
